package com.vanke.devops.domain.job;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * @author 陈景阳
 * @since 2018/6/8
 */
@Component
public class TestJob {

    private Logger logger = LoggerFactory.getLogger(getClass());

    public void test(String params){
        logger.info("我是带参数的test方法，正在被执行，参数为：" + params);

        try {
            Thread.sleep(1000L);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        System.err.println(params);
    }

    public void test2(){
        logger.info("我是不带参数的test2方法，正在被执行");
    }
}
